/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.controller;

import cn.yzc.pojo.Result;
import org.apache.ibatis.logging.stdout.StdOutImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>Project: SpringMVCPro - ErrController</p>
 * <p>Powered by yzc On 2023-11-01 11:43:11</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@RestController
public class ErrController {

    @GetMapping ("/query")
    public Result  err(){
        System.out.println("查询用户");
        Map map = null;
        map.put("name","张三");
        map.put("address","上海");
        return Result.success(map);
    }
}
